import 'package:flutter/material.dart';
import 'package:flutter_kit_plus/flutter_kit.dart';

import '../tool/assets.dart';
import '../tool/tool.dart';

class UploadAnimation extends GradientAnimation {
  const UploadAnimation({super.key});
  @override
  AlignmentGeometryTween animationAlignmentBetween() {
    return AlignmentGeometryTween(begin: Alignment.bottomCenter, end: Alignment.topCenter);
  }

  @override
  Tween<double> animationBetween() {
    return Tween(begin: 0.0, end: 1.0);
  }

  @override
  List<Color> animationColorBetween() {
    return [BLUE, BG_GREY];
  }

  @override
  Widget animationOnWidget() {
    return Image.asset(
      assets.upload, // 替换为你的图片资源
      height: 100,
    );
  }
}
